package com.xuerhua.yxt.common.enums;

import org.aspectj.internal.lang.annotation.ajcDeclareAnnotation;

public enum DictDataCode {
	
	SCHOOL_NOTICE("school_notice","学校通知"),
	CLASS_NOTICE("class_notice","班级通知"),
	HOMEWORK_NOTICE("homework_notice","作业通知"),
	CLASS_ALBUM_NOTICE("class_album_notice","班级相册通知"),
	STUDENT_LEAVE("student_leave","学生请假申请通知"),
	LEAVE_AUDIT("leave_audit","请假审批结果通知"),
	STUDENT_COACH("student_coach","学生缺课提醒"),
	MAILBOX_REPLY("mailbox_reply","校长信箱反馈结果通知"),
	MAILBOX_PARENT("mailbox_parent","校长信箱家长意见提醒"),
	COORDINATION_OFFICE("coordination_office","工作安排提醒"),
	SCHOOLBUS_BOARD("schoolbus_board","校车接送提醒"),
	REPAIR_APPLY("repair_apply","报修申请通知"),
	REPAIRE_RESULT("repaire_result","后勤维修处理结果通知"),
	WORK_APPROVAL_APPLY("work_approval_apply","待审批通知"),
	WORK_APPROVAL_RESULT("work_approval_result","审批结果通知"),
	COMMENT_NOTICE_PAREN("comment_notice_paren","本周班主任评语提醒"),
	SCHOOL_PARENT_RELATION("school_parent_relation", "家校沟通提醒"),
	COURSE_MEMBER_CHANGE("course_member_change", "课堂成员变动通知"),
	TEACHER_LEAVE("teacher_leave","教师请假"),
	CHANGE_COURSE("change_course","教务处调课通知"),
	AUDIT_CHANGE_COURSE("audit_change_course","调课审核结果通知"),
	AUDIT_RESULT("audit_result","审核结果"),
	
	HEAD_BANNER("head_banner", "头部banner图"),
	
	PRINTING_PAPER("printingPaper", "打印纸审批"),
	COPY_PAPER("copyPaper", "复印油纸审批"),
	TEACHING_GOODS("teachingGoods", "教学用品审批"),
	OVERTIME_APPLY("overtimeApply", "加班申请审批"),
	SCHOOL_BUS("schoolBus", "校车审批"),
	;

	private final String code;
	
	private final String desc;
	
	private DictDataCode(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(String code) {
		for(DictDataCode status : DictDataCode.values()) {
			if(status.getCode().equals(code)) {
				return status.getDesc();
			}
		}
		return null;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
